﻿//-----------------------------------------------------------------------
// <copyright file="Copyright.cs" author="Michael Herndon">
//     Copyright (c) Michael Herndon.  All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace Amplify.Twitter
{
	using System;
	using System.Collections.Generic;
	using System.Linq;
	using System.Text;

	/// <summary>
	/// The optional parameters for fetching time line data. 
	/// </summary>
	public class TimelineOptions : DefaultOptions
	{
		private int count;


		/// <summary>
		/// Initializes a new instance of the <see cref="TimelineOptions"/> class.
		/// </summary>
		public TimelineOptions()
			: base()
		{
			this.Count = 10;
		}

		/// <summary>
		/// Gets or sets the count. It must not exceed 200.
		/// </summary>
		/// <value>The count.</value>
		/// <exception cref="Amplify.Twitter.TwitterException"> Throws if the value exceeds 200. </exception>
		public int Count
		{
			get { return this.count; }
			set
			{
				if (value > 200)
					throw new TwitterException("The count must be 200 or less");
				this.count = value;
			}
		}



	}
}
